package com.jiyun.jiyunmall.product.service;

import com.jiyun.jiyunmall.common.service.CrudService;
import com.jiyun.jiyunmall.product.dto.Catalog2VO;
import com.jiyun.jiyunmall.product.dto.CategoryDTO;
import com.jiyun.jiyunmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author boge 71164376@qq.com
 * @since 1.0.0 2022-07-12
 */
public interface CategoryService extends CrudService<CategoryEntity, CategoryDTO> {

    CategoryDTO tree();

    List<CategoryEntity> getLevel1ListCatalog();

    Map<String, List<Catalog2VO>> getCatalogJson();
}